package com.boot.controller.auth;

import com.wf.captcha.utils.CaptchaUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@Api(value = "验证码管理", tags = "验证码管理", description = "验证码管理--接口规范")
public class CaptchaController {

    @GetMapping("/captcha")
    @ApiOperation(value = "获取验证码", notes = "获取验证码", tags = "验证码管理")
    public void captcha(HttpServletRequest request, HttpServletResponse response) throws Exception {
        CaptchaUtil.out(request, response);
    }
}
